package com.imooc.service.impl;

import com.imooc.service.AService;
import com.imooc.service.BService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author HanBin_Yang
 * @since 2024/2/12 22:09
 */
@Service
public class BServiceImpl implements BService {

	@Autowired
	private AService aService;

	@Override
	public void sayB() {
		System.out.println("begin call B");
		String a = aService.sayA();
		System.out.println("b call a return: " + a);
		System.out.println("end call B");
	}
}
